public class px {

    public static void main(String[] args) {
        int a[] = {1,11111111,111,111,1111,11111,1111111,11111111,1111,11111111,111111111,1111111,11111111};
        int i = 0;
        int bl = 0;
        try {


            for (i = 0; i < a.length; i++) {


                for (bl = i; bl < a.length; bl++) {
                    int x;
                    if (a[i] < a[bl]) {
                        x = a[i];
                        a[i] = a[bl];
                        a[bl] = x;

                    }
//                    System.out.println(a[0]+""+a[1]+""+a[2]+""+a[3]+""+a[4]+""+a[5]+""+a[6]+""+a[7]);
                    System.out.println("--------------------------------");
                    for (int sc = 0; sc < a.length; sc++) {
                        System.out.println(a[sc]);
                    }

                }

                    System.out.println("123456789");


            }
        } catch (Exception e) {
            System.out.println(i + "and" + bl);
            e.printStackTrace();
        }
    }

}
